<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <title>Document</title>
</head>
<body>

</body>
<script>
   class Amail {
     constructor( name ,age ){
       this.name  = name ;
       this.age  = age
     };
     eat(){
       console.log('吃吃吃');
     }
     static run (){
       console.log('跑跑跑');
     }
   }
   Amail.maxAge = 100;
   let dog = new Amail ("小狗狗", 10)
   console.log(dog);
   console.log(Amail.maxAge);
   Amail.run()

    class Person extends Amail{

    }
    let p1 = new Person("昀昀猪",2)
    console.log(p1);

</script>
</html>
